<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta charset="utf-8" />
    <title>Zookeeper-Center  --By fattiger.xiaoyang</title>
    <#include "/page-content/head.html">
</head>

<body>
    <div class="page-content">
        <div class="page-header">
            <h1>
                Zookeeper
                <small>
                    <i class="ace-icon fa fa-angle-double-right"></i>
                    Zookeeper &amp; Center
                </small>
            </h1>
        </div><!-- /.page-header -->

        <div class="row">
            <div class="col-xs-12">
                <table id="sample-table-1" class="table table-striped table-bordered table-hover">
                    <thead>
                        <tr>
                            <th>所属项目</th>
                            <th>服务器名称</th>
                        </tr>
                    </thead>
                    <tbody>
                    <#list zkList as zk >
                        <tr>
                            <td>watch</td>
                            <td><a href="list.do?zkConnect=${zk}">${zk}</a></td>
                        </tr>
                    </#list>
                    </tbody>
                </table>
            </div>
        </div><!-- /.row -->
        <div class="row">
            <div class="col-xs-12">
            <table id="sample-table-1" class="table table-striped table-bordered table-hover">
                <thead>
                <tr>
                    <th class="center">
                        <label class="position-relative">
                            <input type="checkbox" class="ace" />
                            <span class="lbl"></span>
                        </label>
                    </th>
                    <th>parent</th>
                    <th>name</th>
                </tr>
                </thead>

                <tbody>
                <#list result.nodeList as zkNode >
                    <tr>
                        <td class="center">
                            <label class="position-relative">
                                <input type="checkbox" class="ace" />
                                <span class="lbl"></span>
                            </label>
                        </td>
                        <td>${zkNode.parent}</td>
                        <#if zkNode.parent == '/'>
                            <td><a href="list.do?zkConnect=${zkConnect}&parent=${zkNode.parent}${zkNode.name}">${zkNode.name}</a></td>
                            <#else>
                                <td><a href="list.do?zkConnect=${zkConnect}&parent=${zkNode.parent}/${zkNode.name}">${zkNode.name}</a></td>
                        </#if>
                    </tr>
                </#list>
                </tbody>
            </table>
            </div>
        </div>
    </div><!-- /.page-content -->
    <!-- basic scripts -->
    <#include "/page-content/basic-scripts.html">
</body>
</html>